package com.spring.boot.proxy;

/**
 * 代理工厂类
 */
public class ServiceFactory {

    public static UserService getServiceInstance(){
        //根据真实的业务子类得到一个它的代理对象，
        return (UserService)new DynamicProxy().bind(new UserServiceImpl());
    }

}
